package org.lboot.flow.module.define;

import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.lboot.jpa.jpa.AbstractJpaCurdExt;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
@AllArgsConstructor
public class FlowDefineServiceImpl extends AbstractJpaCurdExt<String,FlowDefine,FlowDefineDAO> implements FlowDefineService {
    @Override
    public List<FlowDefine> getFlowByCode(String code) {
        return dao.findByFlowCode(code);
    }

    @Override
    public List<String> getDistinctGroup() {
        return dao.findDistinctGroup();
    }
}
